package com.spic.business.nmgs.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.spic.business.nmgs.service.IRmWzglMstService;
import com.spic.business.violation.supervision.action.domain.ViolationActionInput;
import com.spic.business.violation.supervision.action.mapper.ViolationActionInputMapper;
import com.spic.common.core.utils.SecurityUtils;
import com.spic.common.core.web.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 290512
 * @create 2022-03-29 10:38
 */
@Service
public class RmWzglMstServiceImpl implements IRmWzglMstService
{
    @Autowired
    private ViolationActionInputMapper violationActionInputMapper;


    @Override
    public AjaxResult wzglDataLoader()
    {
        QueryWrapper<ViolationActionInput> sectionQueryWrapper = new QueryWrapper<>();
        sectionQueryWrapper.eq("user_id", SecurityUtils.getUserId()).or().isNull("user_id");
        sectionQueryWrapper.select().orderByDesc("create_time");
        //获取数据
        List<ViolationActionInput> inputList = violationActionInputMapper.selectList(sectionQueryWrapper);
        return null;
    }
}
